package com.sl.au.entity;

import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 人员轨迹
 * 
 * @author 杨迪
 *
 */
@Entity
@Table(name = "sl_wcsi_UserTrajectory")
public class UserTrajectory extends Root{
	
	@ManyToOne
	@JoinColumn(name = "user",nullable = true)
	private User user; // 人员
	
	@Column(name = "trajectoryTime", nullable = true)
	private Date trajectoryTime = new Date();//安装时间
	
	@Column(name = "longitude", nullable = true)
	private double longitude;//经度
	
	@Column(name = "latitude", nullable = true)
	private double latitude;//纬度

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getTrajectoryTime() {
		return trajectoryTime;
	}

	public void setTrajectoryTime(Date trajectoryTime) {
		this.trajectoryTime = trajectoryTime;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	
}
